package com.learner.pojo.exam;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
* @author ice2020x
* @Date: 2023/3/7
* @Description: 答案表实体
**/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "exam_answer")
public class Answer implements Serializable {

    private static final long serialVersionUID = -1;
    /**
     * 主键 答案id  对应数据库的主键(uuid,自增id,雪花算法, redis,zookeeper)
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 所有的选项信息 2,3,4,5(代表ABCD四个选项)
     */
    private String allOption;

    /**
     * 答案的图片列表 img1URl, img2URl
     */
    private String images;
    /**
     * 答案解析 1+1=2
     */
    private String analysis;
    /**
     * 问题id 1
     */
    private Integer questionId;
    /**
     * 正确的答案的索引 allOption[index]
     */
    private String trueOption;

}
